package com.woniuxy03;

import java.io.File;
import java.io.IOException;

public class Test02 {
    public static void main(String[] args) throws IOException {
        File file=new File("d:\\aaa");
//        String[] strs = file.list();
//        for (String str : strs) {
//            System.out.println(str);
//        }

        File[] files = file.listFiles();
        for(File myfile:files){
            System.out.println(myfile);
            System.out.println(myfile.isDirectory()?"目录":"文件");
        }

    }
}
